package com.example.template.commontable.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.example.template.core.annotation.MapperClass;
import com.example.template.core.entity.BaseEntity;
import com.example.template.commontable.mapper.TableColumnMapper;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;

/**
 * 
 * 表头数据
 * @author meko
 * @date 2019-11-28
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel("表头数据")
@MapperClass(TableColumnMapper.class)
@Table(name = "`table_column`")
public class TableColumn extends BaseEntity {
    @Column(name = "`id`")
    @GeneratedValue(generator = "JDBC")
    @ApiModelProperty("")
    @Excel(name = "")
    private String id;

    @Column(name = "`table_name`")
    @ApiModelProperty("")
    @Excel(name = "")
    private String tableName;

    @Column(name = "`prop`")
    @ApiModelProperty("")
    @Excel(name = "")
    private String prop;

    @Column(name = "`label`")
    @ApiModelProperty("")
    @Excel(name = "")
    private String label;

    @Column(name = "`fixed`")
    @ApiModelProperty("")
    @Excel(name = "")
    private String fixed;

    @Column(name = "`width`")
    @ApiModelProperty("")
    @Excel(name = "")
    private String width;

    @Column(name = "`render`")
    @ApiModelProperty("")
    @Excel(name = "")
    private String render;

    @Column(name = "`sort`")
    @ApiModelProperty("")
    @Excel(name = "")
    private String sort;

    @Column(name = "`param1`")
    @ApiModelProperty("")
    @Excel(name = "")
    private String param1;

    @Column(name = "`param2`")
    @ApiModelProperty("")
    @Excel(name = "")
    private String param2;

    @Column(name = "`param3`")
    @ApiModelProperty("")
    @Excel(name = "")
    private String param3;

    @Column(name = "`param4`")
    @ApiModelProperty("")
    @Excel(name = "")
    private String param4;

    @Column(name = "`param5`")
    @ApiModelProperty("")
    @Excel(name = "")
    private String param5;

    @Column(name = "`param6`")
    @ApiModelProperty("")
    @Excel(name = "")
    private String param6;

    @Column(name = "`param7`")
    @ApiModelProperty("")
    @Excel(name = "")
    private String param7;

    @Column(name = "`param8`")
    @ApiModelProperty("")
    @Excel(name = "")
    private String param8;

    @Column(name = "`param9`")
    @ApiModelProperty("")
    @Excel(name = "")
    private String param9;

    @Column(name = "`param10`")
    @ApiModelProperty("")
    @Excel(name = "")
    private String param10;

    public static final String ID = "id";

    public static final String DB_ID = "id";

    public static final String TABLE_NAME = "tableName";

    public static final String DB_TABLE_NAME = "table_name";

    public static final String PROP = "prop";

    public static final String DB_PROP = "prop";

    public static final String LABEL = "label";

    public static final String DB_LABEL = "label";

    public static final String FIXED = "fixed";

    public static final String DB_FIXED = "fixed";

    public static final String WIDTH = "width";

    public static final String DB_WIDTH = "width";

    public static final String RENDER = "render";

    public static final String DB_RENDER = "render";

    public static final String SORT = "sort";

    public static final String DB_SORT = "sort";

    public static final String PARAM1 = "param1";

    public static final String DB_PARAM1 = "param1";

    public static final String PARAM2 = "param2";

    public static final String DB_PARAM2 = "param2";

    public static final String PARAM3 = "param3";

    public static final String DB_PARAM3 = "param3";

    public static final String PARAM4 = "param4";

    public static final String DB_PARAM4 = "param4";

    public static final String PARAM5 = "param5";

    public static final String DB_PARAM5 = "param5";

    public static final String PARAM6 = "param6";

    public static final String DB_PARAM6 = "param6";

    public static final String PARAM7 = "param7";

    public static final String DB_PARAM7 = "param7";

    public static final String PARAM8 = "param8";

    public static final String DB_PARAM8 = "param8";

    public static final String PARAM9 = "param9";

    public static final String DB_PARAM9 = "param9";

    public static final String PARAM10 = "param10";

    public static final String DB_PARAM10 = "param10";

    public static TableColumn defaultInstance() {
        TableColumn instance = new TableColumn();
        return instance;
    }
}